<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>

    <link href="./assets/styles/default.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>

	<style>
		h5 {
			padding:10px;
			margin: 0;
			text-align: left;
			background-color: #f5f5f5;
			border-bottom: 3px double #e5e5e5;
			font-size: 14px;
		}
	</style>

</head>
<body>

{{$zhead}}
<div id="container">
{{$zmenu}}

    <article>
    	<h2><span>&nbsp;</span>注文管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
        	        
                    
				<li><a href="{{'Home/OrderManage/index'|U}}"><span>履歴検索</span></a></li>
				<li><a href="{{'Home/order/summary'|U}}"><span>売上集計</span></a></li>
				<!-- <li><a href="{{'Home/order/dl'|U}}"><span>DLデータ順</span></a></li> -->
				<li class="active"><a href="{{'Home/order/setting'|U}}"><span>基本設定</span></a></li>
			</ul>
        </nav>
		<section id="content">
			<h3>基本設定</h3>
			<form name="fm" action="{{'Home/order/setting'|U}}" method="post" enctype="multipart/form-data" class="clear">
				<h4><span>&nbsp;</span>送料設定</h4>

				<h5>{{$data.0.content}}</h5>
				<table class="formTable">
					<tbody>
						<tr>
							<th>送料</th>
							<td><input type="text" class="short" name="price_{{$data.0.id}}" value="{{$data.0.price}}"/> 円{{$res}}</td>
						</tr>
						<tr>
							<th>無料設定</th>
							<td>
								<INPUT type="hidden" value='{{$data.0.id}}' name='id_{{$data.0.id}}'>
								<INPUT type="hidden" value='{{$data.0.content}}' name='content_{{$data.0.id}}'>
								<label for="wu{{$data.0.id}}"><input id="wu{{$data.0.id}}"   class=radio type="radio"  name="freeset_{{$data.0.id}}" value="0" {{if $data.0.freeset=='0' }} checked {{/if}} />無効</label>
								<label for="you{{$data.0.id}}"><input id="you{{$data.0.id}}"  type="radio" name="freeset_{{$data.0.id}}"  value="1" {{if $data.0.freeset=='1' }} checked {{/if}}  />有効</label><br />
								<input type="text" class="short" name="freeprice_{{$data.0.id}}" value="{{$data.0.freeprice}}"/> 円以上{{$res1}}
							</td>
						</tr>
					</tbody>
				</table>

				<h5>{{$data.1.content}}</h5>
				<table class="formTable">
					<tbody>
						<tr>
							<th>送料</th>
							<td><input type="text" class="short" name="price_{{$data.1.id}}" value="{{$data.1.price}}"/> 円{{$res2}}</td>
						</tr>
						<tr>
							<th>無料設定</th>
							<td>
							<INPUT type="hidden" value='{{$data.1.id}}' name='id_{{$data.1.id}}'>
							<INPUT type="hidden" value='{{$data.1.content}}' name='content_{{$data.1.id}}'>
								<label for="wu{{$data.1.id}}"><input id="wu{{$data.1.id}}" type="radio" {{if $data.1.freeset=='0' }}checked {{/if}} name="freeset_{{$data.1.id}}"  value="0"/>無効</label>
								<label for="you{{$data.1.id}}"><input id="you{{$data.1.id}}"  type="radio" {{if $data.1.freeset=='1' }}checked {{/if}} name="freeset_{{$data.1.id}}"  value="1"/>有効</label><br />
								<input type="text" class="short" name="freeprice_{{$data.1.id}}" value="{{$data.1.freeprice}}"/> 円以上{{$res3}}
							</td>
						</tr>
					</tbody>
				</table>

					<h5>{{$data.2.content}}</h5>
				<table class="formTable">
					<tbody>
						<tr>
							<th>送料</th>
							<td><input type="text" class="short" name="price_{{$data.2.id}}" value="{{$data.2.price}}"/> 円{{$res2}}</td>
						</tr>
						<tr>
							<th>無料設定</th>
							<td>
							<INPUT type="hidden" value='{{$data.2.id}}' name='id_{{$data.2.id}}'>
							<INPUT type="hidden" value='{{$data.2.content}}' name='content_{{$data.2.id}}'>
								<label for="wu{{$data.2.id}}"><input id="wu{{$data.2.id}}"  type="radio" {{if $data.2.freeset=='0' }}checked {{/if}} name="freeset_{{$data.2.id}}"  value="0"/>無効</label>
								<label for="you{{$data.2.id}}"><input id="you{{$data.2.id}}"  type="radio" {{if $data.2.freeset=='1' }}checked {{/if}} name="freeset_{{$data.2.id}}"  value="1"/>有効</label><br />
								<input type="text" class="short" name="freeprice_{{$data.2.id}}" value="{{$data.2.freeprice}}"/> 円以上{{$res3}}
							</td>
						</tr>
					</tbody>
				</table>

				<h4><span>&nbsp;</span>消費税</h4>
				<table class="formTable">
					<tbody>
						<tr>
							<th>{{$data2.1.flag_name}}</th>
							<td>
								<label for="shui"><input   type="radio" value="0" name="flag_value" id="shui" {{if $data2.0.flag_value=='0' }}checked {{/if}}/>税込計算</label><br />
								<label for="zhu"><input type="radio" value="1" name="flag_value" id="zhu" {{if $data2.0.flag_value=='1' }}checked {{/if}}/>注文毎に計算</label><br />
								<label for="shang"><input type="radio" value="2" name="flag_value" id="shang" {{if $data2.0.flag_value=='2' }}checked {{/if}}/>商品毎に計算</label>
							</td>
						</tr>
						<tr>
							<th>{{$data2.1.flag_name}}</th>
							<td><input type="text" class="short" name="flag_value_2" value="{{$data2.1.flag_value}}"/> %{{$res6}}</td>
						</tr>
					</tbody>
				</table>

				<h4><span>&nbsp;</span>決済方法</h4>

					<h5>{{$data.3.content}}</h5>
				<table class="formTable">
					<tbody>
						<tr>
							<th>送料</th>
							<td><input type="text" class="short" name="price_{{$data.3.id}}" value="{{$data.3.price}}"/> 円{{$res2}}</td>
						</tr>
						<tr>
							<th>無料設定</th>
							<td>
							<INPUT type="hidden" value='{{$data.3.id}}' name='id_{{$data.3.id}}'>
							<INPUT type="hidden" value='{{$data.3.content}}' name='content_{{$data.3.id}}'>
								<label for="wu{{$data.3.id}}"><input id="wu{{$data.3.id}}"  type="radio" {{if $data.3.freeset=='0' }}checked {{/if}} name="freeset_{{$data.3.id}}"  value="0"/>無効</label>
								<label for="you{{$data.3.id}}"><input id="you{{$data.3.id}}"  type="radio" {{if $data.3.freeset=='1' }}checked {{/if}} name="freeset_{{$data.3.id}}"  value="1"/>有効</label><br />
								<input type="text" class="short" name="freeprice_{{$data.3.id}}" value="{{$data.3.freeprice}}"/> 円以上{{$res3}}
							</td>
						</tr>
					</tbody>
				</table>

					<h5>{{$data.4.content}}</h5>
				<table class="formTable">
					<tbody>
						<tr>
							<th>送料</th>
							<td><input type="text" class="short" name="price_{{$data.4.id}}" value="{{$data.4.price}}"/> 円{{$res2}}</td>
						</tr>
						<tr>
							<th>無料設定</th>
							<td>
							<INPUT type="hidden" value='{{$data.4.id}}' name='id_{{$data.4.id}}'>
							<INPUT type="hidden" value='{{$data.4.content}}' name='content_{{$data.4.id}}'>
								<label for="wu{{$data.4.id}}"><input id="wu{{$data.4.id}}"  type="radio" {{if $data.4.freeset=='0' }}checked {{/if}} name="freeset_{{$data.4.id}}"  value="0"/>無効</label>
								<label for="you{{$data.4.id}}"><input id="you{{$data.4.id}}"  type="radio" {{if $data.4.freeset=='1' }}checked {{/if}} name="freeset_{{$data.4.id}}" value="1"/>有効</label><br />
								<input type="text" class="short" name="freeprice_{{$data.4.id}}" value="{{$data.4.freeprice}}"/> 円以上{{$res3}}
							</td>
						</tr>
					</tbody>
				</table>


				<p class="button">
					<button type="button" id="btn_update" class="submit"><span>更新</span></button>{{$err1}}
				</p>
			</form>
		</section>
	</article>
</div>
<footer id="dashboard_footer">Copyright (C) SHIFT. / All rights reserved.</footer>
</body>
</html>